<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">


<div class="table-responsive">
    <table class="table table-bordered">
        <thead>
        <tr>
            <th class="text-center"><div class="table-first-id">ID</div></th>
            <th class="text-center" width="15%">话题id</th>
            <th class="text-center" width="25%">话题标题</th>
            <th class="text-center" width="30%">举报内容</th>
            <th class="text-center" width="10%">举报人</th>
            <th class="text-center" width="10%">举报时间</th>
            <th class="text-center" width="5%">操作</th>
        </tr>
        </thead>
    </table>
    <div class="J_V_tabContent table-xScrollWrap">
        <table class="table table-bordered table-hover table-xs-content">
            <tbody id="tbodyClassTopic">
            <tr class="jqgfirstrow" role="row">
                <th class="text-center"><div class="table-first-id">&nbsp;</div></th>
                <th class="text-center" width="15%">&nbsp;</th>
                <th class="text-center" width="25%">&nbsp;</th>
                <th class="text-center" width="30%">&nbsp;</th>
                <th class="text-center" width="10%">&nbsp;</th>
                <th class="text-center" width="10%">&nbsp;</th>
                <th class="text-center" width="5%">&nbsp;</th>
            </tr>

            <tr th:if="${#lists.isEmpty(dataMap['list'])}">
                <td colspan="7" class="text-center">
                    <div class="noDataTipsBox">
                        <p><span class="c-4e fs16">还没有数据~~~</span></p>
                    </div>
                </td>
            </tr>

            <tr th:if="not ${#lists.isEmpty(dataMap['list'])}" th:each="report : ${dataMap['list']}" th:attr="data-id=${report['id']}">
                <td class="text-center">
                    <input type="checkbox" class="i-checks" name="id" th:value="${report['id']}"/>
                </td>
                <td class="text-center" th:text="${report['topicId']}"></td>
                <td class="text-center" th:text="${report['classesTopic']['title']}"></td>
                <td class="text-center" th:text="${report['content']}"></td>
                <td class="text-center">
                    <span th:if="not ${#strings.isEmpty(report['user']['mobile'])}" th:text="${report['user']['mobile']}"></span><br>
                    <span th:if="not ${#strings.isEmpty(report['user']['email'])}" th:text="${report['user']['email']}"></span>
                </td>
                <td class="text-center" th:text="${#strings.substring(report['createTime'],0,16)}"></td>
                <td class="text-center">
                    <a class="c-master fs14 ml5" th:attr="data-topicId=${report['topicId']}" data-toggle="tooltip" data-placement="top" data-original-title="查看"><i class="fa fa-eye"></i> </a>
                    <a href="javascript:void(0);" class="c-master fs14 ml5 deleteTopicReport" data-toggle="tooltip" data-placement="bottom" data-original-title="删除"><i class="fa fa-trash"></i></a>
                    <a th:if="${report['classesTopic']['status']} == 1" th:attrappend="data-id=${report['classesTopic']['id']}"  class="c-master fs14 ml5" data-toggle="tooltip" data-placement="top" data-original-title="禁用话题"><i class="fa fa-unlock-alt"></i> </a>
                    <a th:if="${report['classesTopic']['status']} == 2"  th:attrappend="data-id=${report['classesTopic']['id']}"     class="c-master fs14 ml5" data-toggle="tooltip" data-placement="top" data-original-title="恢复话题"><i class="fa fa-history"></i> </a>
                </td>
            </tr>
            </tbody>
        </table>
    </div>

    <!-- 分页，开始 -->
    <div data-th-replace="layout/adminPage"></div>
    <!-- 分页，结束 -->
</div>

</html>



